﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using SMSSnew.DATA;

namespace SMSSnew.UI
{
    public partial class userAccountHome : System.Web.UI.Page
    {
        //userAccountDA classData = new userAccountDA();

        protected void Page_Load(object sender, EventArgs e)
        {
            //DataTable dataTbl = new DataTable();

            //if (!IsPostBack)
            //{
            //    dataTbl = classData.loadGrade_id();

            //    for (int i = 0; i < dataTbl.Rows.Count; i++)
            //    {
            //        comGradeId.Items.Insert(i, dataTbl.Rows[i][0].ToString());
            //    }
            //}
        }

        protected void imgButAdd_Click(object sender, ImageClickEventArgs e)
        {
            if(combUserType.SelectedValue == "Student")
                Response.Redirect("StudentCreateAcc.aspx");
                
        }

        protected void imgButEdit_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("StudentEditAcc.aspx");
        }

        protected void imgButDelete_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("StudentDeleteAcc.aspx");
        }
    }
}
